// 查询全量数据
export default defineEventHandler(async () => {
  try {
    const res_list = await RoleSchema.find({}).lean();
    return {
      data: res_list,
    };
  } catch (error) {
    throw createError({
      statusCode: 500,
      statusMessage: "查询全量角色信息失败",
    });
  }
});
